package com.joelemon.mockinfluxdbdata.core.log;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.joelemon.mockinfluxdbdata.mock.VisableInfo;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Description: mock任务日志
 * @Author: HJY
 * @Date: 2023/11/20
 */
@Service()
@Slf4j
@RequiredArgsConstructor
public class MockTaskLogService extends ServiceImpl<MockTaskLogMapper, MockTaskLog> {

    public void log(VisableInfo visableInfo, String errorMes) {
        MockTaskLog logData = MockTaskLog.createLog(visableInfo, errorMes);
        this.save(logData);
    }
}
